﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServerPlatform.DataProvider.Providers.SharePointLibrary
{
    [Serializable]
    public class SPItem:List<SPColumn>
    {
        public object this[string colname]
        {
            get 
            {
                SPColumn col = this.FirstOrDefault(p => p.ColumnName == colname);
                if (col != null) return col.ColumnValue; else return null;
            }
        }
    }
}
